#ifndef _LIB_H_
#define _LIB_H_
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>

typedef enum  _RET_ {
	RET_OK = 0,
	RET_PRA ,
	RET_MEM,
	RET_END,
	RET_FULL,
	RET_FAILED,
	RET_NONE,
} ret_e;

#define  RET ret_e

#define assert_debug(p) \
	do { \
		if (!(p)) { \
			printf("%s:%d Warning: "#p" not Expect.\n", __func__, __LINE__);\
		} \
	}while (0)

void array_fill_with_rand(int *array,int size);
void array_fill_with_rand_only(int *array,int size);
void array_print(int *array,int size,char *info);
ret_e printf_int(int data,void *context);
int int_get_max(void);
int int_get_min(void);
void two_dimension_array_print(int *array,int m,int n);
void array_fill_with_rand_neg(int *array,int size);
void array_all_type_print(void *a,int size,int val,char *info,char *type);
void swap(int *array, int l,int r);
void array_print_char(char *array,int size,char *info);
#endif

